import { getImageFilePaths,imageToBase64 } from './img.js'
import {getText} from './auth.js'
import {writeToFile} from './write.js'

async function main() {
    const filePathArr = await getImageFilePaths('./images')
    for(let i =0;i<filePathArr.length;i++) {
        const base64  =  await imageToBase64(filePathArr[i])
        const testRes = await getText(base64)
        writeToFile('out.txt',testRes)
    }
}
main()
